import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import *

testCase="DBshop009_销售管理退货管理搜索"

firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu2(firefox,"销售管理","退货管理")
from selenium.webdriver.support.select import Select
s=Select(firefox.find_element_by_xpath("//select[@name='refund_type']"))
s.select_by_visible_text("退款到账户余额")
firefox.find_element_by_xpath("//button").click()

try:
    if firefox.find_element_by_xpath("//td[text()='退款到账户余额']"):
        writeLog("%s 测试通过"%testCase)
except:
    writeLog("%s 测试失败" % testCase)
    getPhoto(firefox)

